package com.dt.app.modules.content.entities;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈辉
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("content")
@ApiModel(value="Content对象", description="")
public class Content implements Serializable {

    private static final long serialVersionUID=20240313230102381L;

    @ApiModelProperty(value = "内容")
    @TableId(value = "content_id", type = IdType.AUTO)
    private Long contentId;

    @ApiModelProperty(value = "类型")
    @TableField("content_type_id")
    private Long contentTypeId;

    @ApiModelProperty(value = "发布人")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "新闻分类路径")
    @TableField("type_path")
    private String typePath;

    @ApiModelProperty(value = "标题")
    @TableField("content_title")
    private String contentTitle;

    @ApiModelProperty(value = "副标题")
    @TableField("subtitle")
    private String subtitle;

    @ApiModelProperty(value = "2已发布 1待审核 0审核不通过")
    @TableField("display")
    private Integer display;

    @ApiModelProperty(value = "内容")
    @TableField("content_value")
    private String contentValue;

    @ApiModelProperty(value = "编码")
    @TableField("content_no")
    private String contentNo;

    @ApiModelProperty(value = "发行时间")
    @TableField("issue_time")
    private LocalDateTime issueTime;

    @ApiModelProperty(value = "过期下架时间")
    @TableField("expire_time")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "seo引擎关键字")
    @TableField("key_words")
    private String keyWords;

    @ApiModelProperty(value = "seo引擎描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "标题宣传媒体")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "1 0是否有媒体图片")
    @TableField("with_media")
    private Integer withMedia;

    @ApiModelProperty(value = "自定义连接")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "区域全路径")
    @TableField("region_path")
    private String regionPath;

    @ApiModelProperty(value = "1pc端 2移动客户端 3综合客户端")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private BigDecimal latitude;

    @ApiModelProperty(value = "降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "收藏数量")
    @TableField("collection_count")
    private Integer collectionCount;

    @ApiModelProperty(value = "称赞数量")
    @TableField("tag_count")
    private Integer tagCount;

    @ApiModelProperty(value = "贬低数量")
    @TableField("tag_down_count")
    private Integer tagDownCount;

    @ApiModelProperty(value = "投票数量")
    @TableField("vote_count")
    private Integer voteCount;

    @ApiModelProperty(value = "评论数量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty(value = "查阅数量")
    @TableField("look_count")
    private Integer lookCount;

    @TableField("memberships_level")
    private Integer membershipsLevel;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
